package com.warm.orm.domain.sys;


import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import com.warm.orm.domain.sys.proxy.SysUserRoleProxy;
import lombok.Data;

/**
 * 用户和角色关联 sys_user_role
 *
 * @author warm
 */
@Data
@Table("sys_user_role")
@EntityProxy
public class SysUserRole implements ProxyEntityAvailable<SysUserRole, SysUserRoleProxy> {
    /**
     * 用户ID
     */
    @Column(primaryKey = true)
    private Long userId;

    /**
     * 角色ID
     */
    @Column(primaryKey = true)
    private Long roleId;

    @Override
    public Class<SysUserRoleProxy> proxyTableClass() {
        return SysUserRoleProxy.class;
    }
}
